
package com.bi2.events.mobile;

import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

public class PerfilEventoActivity extends TabActivity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.perfil_evento_tabhost);

        Resources res = getResources();
        TabHost tabHost = getTabHost();
        TabHost.TabSpec spec;
        Intent intent;

        intent = new Intent().setClass(this, PerfilEventoTabActivity.class);

        spec = tabHost.newTabSpec("perfil")
                .setIndicator("Perfil", res.getDrawable(R.drawable.ic_interno_perfil))
                .setContent(intent);
        tabHost.addTab(spec);

        intent = new Intent().setClass(this, PerfilEventoUsuariosTabActivity.class);
        spec = tabHost.newTabSpec("usuarios")
                .setIndicator("Usuarios", res.getDrawable(R.drawable.ic_interno_amigos))
                .setContent(intent);
        tabHost.addTab(spec);

        intent = new Intent().setClass(this, PerfilEventoMuralTabActivity.class);
        spec = tabHost.newTabSpec("mural")
                .setIndicator("Mutal", res.getDrawable(R.drawable.ic_interno_eventos))
                .setContent(intent);
        tabHost.addTab(spec);

        tabHost.setCurrentTab(0);
    }
}
